package com.czy.workflow.display.controller;

import com.czy.workflow.display.service.DisplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/display")
public class DisplayController {

    @Autowired DisplayService displayService;

    @GetMapping("/listFlowMains")
    public List listFlowMains(){
        return displayService.listFlowMains();
    }

    @GetMapping("/listRuntimeNodes")
    public List listRuntimeNodes(){
        return displayService.listRuntimeNodes();
    }


}
